from apscheduler.schedulers.blocking import BlockingScheduler
from apscheduler.executors.pool import ProcessPoolExecutor

# 1.定义执行器
executors = {
    'default': ProcessPoolExecutor(3)
}

# 2.创建调度对象
scheduler = BlockingScheduler(executors=executors)

# 3.定义定时任务函数
def print_test():
    print('1234567890')

# 4.添加任务
scheduler.add_job(print_test, 'cron', hour=13, minute=55)

if __name__ == '__main__':
    # 5.启动
    scheduler.start()